package p.ithorns.framework.crypto.core;

/**
 * Crypto
 * TODO
 *
 * @author ithorns
 * @version 1.0
 * @date 2019/5/24 11:28
 */
public interface Crypto {

    /**
     * 加密
     * @param content
     * @param encryptKey
     * @return
     * @throws Exception
     */
    public String encrypt(String content, String encryptKey) throws Exception;

    /**
     * 解密
     * @param encryptStr
     * @param decryptKey
     * @return
     * @throws Exception
     */
    public String decrypt(String encryptStr, String decryptKey, String charset) throws Exception;
}
